package cn.edu.ecut.synchronize;

public class SynchronizationTest6 {

	public static void main(String[] args) throws Exception {
		
		Runnable task = new Runnable() {
			@Override
			public void run() {
				Sun s = Sun.getInstance();
				System.out.println( s );
			}
		};
		
		Thread t1 = new Thread( task , "first" );
		Thread t2 = new Thread( task , "second" );
		Thread t3 = new Thread( task , "third" );
		
		t1.start();
		t2.start();
		t3.start();
		

	}

}
